%define commit e14ea9d1ce1d32783b5a24fcfcff890e55c2c12d
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8): Плазмойд для технической поддержки
Summary:	Tech support plasmoiod
Name:		plasma5-applet-stpinfo
Version:	0.1
Release:	0.git%{commit_short}.3
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://ig.mos.ru
Vendor:		DIT
Source0:	https://hub.mos.ru/mos/src/kde/plasma-applet-stpinfo/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch:	noarch
Requires:	grep
Requires:	%{_bindir}/hostname
Requires:	%{_bindir}/pgrep
Requires:	%{_bindir}/ss
Requires:	%{_bindir}/systemctl

%description
%summary.

%description -l ru_RU.UTF-8
Плазмоид с информацией для обращения в службу технической поддержки (СТП).

%files
%{_datadir}/plasma/plasmoids/org.mos.stpinfo

#------------------------------------------------------------------

%prep
%autosetup -p1 -n plasma-applet-stpinfo-%{commit}

%install
mkdir -p %{buildroot}%{_datadir}/plasma/plasmoids/org.mos.stpinfo
cp metadata.json %{buildroot}%{_datadir}/plasma/plasmoids/org.mos.stpinfo
cp -rv contents  %{buildroot}%{_datadir}/plasma/plasmoids/org.mos.stpinfo
